class Child extends Base {
    private int x1 = initPrint1();
    public String s1 = "子类实例变量s1";
 
    private static int x2 = initPrint2();
    private static String s2 = "子类静态变量s2";
 
    private int initPrint1() {
        System.out.println("子类initPrint1 实例变量s1:" + s1);
        System.out.println("子类initPrint1 静态变量s2:" + s2);
        return 11;
    }
 
    private static int initPrint2() {
        System.out.println("子类initPrint2 静态变量s2:" + s2);
        return 21;
    }

    public Child(){
        this("this调用有参构造器");
        System.out.println("this调用有参构造器");
    }
    public Child(String s) {
        super(1);
        System.out.println("子类构造器");
    }

    public Child(String s,int age) {
        super(1);
        System.out.println("子类构造器");
    }
    public void callName() {
        System.out.println(s1);
    }
 
    public static void sMethodChild() {
        System.out.println("子类静态方法sMethodChild 静态变量s2:"+s2);
    }
}